<ul class="sitemap">
{foreach from=$Map item="curr" key="key" name="bmenu"}
<li><a href="{$curr.link}">{$curr.title}</a>
{if $curr.items|@count > 0}
  {include file=$Config.ModulesFolder|cat:$Config.BlocksFolder|cat:"block.sitemap.tpl" Map=$curr.items}
{/if}
</li>
{/foreach}
</ul>
